package com.mars.dao;

import com.mars.pojo.User;
import org.apache.ibatis.annotations.*;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    @Select("select * from user limit 1,2")
    List<User> getUserById(int id);

    @Select("select * from user where id = #{u.id} and name = #{u.name}")
    User getUserByIdName(@Param("uid") int id,@Param("uname") String name,@Param(value = "u") User user);




}
